package valeria;

import java.util.Scanner;

public class J09Account {
	public static void main(String[]args){
		int aid[]=new int[2];
		int balance[]=new int[2];
		double interestRate[]=new double[2];
		String dateCreated[]=new String[2];
		double getMonthlyInterestRate[]=new double[2];
		int withDraw[]=new int[2];
		int deposit[]=new int[2];
		
		//입력 
		inputAccount(aid, getMonthlyInterestRate, dateCreated, deposit, withDraw, balance);
		//처리
		getMonthlyInterestRate(getMonthlyInterestRate, getMonthlyInterestRate);
		deposit(balance, deposit);
		withDraw(balance, withDraw);
		//출력
		System.out.println(aid[1]);
		System.out.println(interestRate[1]);
		System.out.println(balance[1]);
		System.out.println(dateCreated[1]);
		System.out.println(getMonthlyInterestRate[1]);
		System.out.println(withDraw[1]);
		System.out.println(deposit[1]);
	}//main
	
	//예금,이자율,인출,입금정보 입력
	public static void inputAccount(
			int aid[],double interestRate[],String dateCreated[],
			int deposit[], int withdraw[],int balance[]){
		Scanner sc=new Scanner(System.in);
		System.out.println("계좌번호는?");
		aid[1]=sc.nextInt();
		System.out.println("잔액은?");
		balance[1]=sc.nextInt();
		System.out.println("연간이자율은?");
		interestRate[1]=sc.nextDouble();
		System.out.println("통장 개설일은?");
		dateCreated[1]=sc.next(); //2014-03-15
		System.out.println("입금액은?");
		deposit[1]=sc.nextInt();
		System.out.println("인출액은?");
		withdraw[1]=sc.nextInt();
		
	}
	
	//월간이자율계산
public static void getMonthlyInterestRate(
		double monthlyInterestRate[], double interestRate[]){
	monthlyInterestRate[1]=interestRate[1]/12;
	
	}//monthly

//인출
public static void withDraw(int balance[],
		int withdraw[]){
	balance[1]=balance[1]-withdraw[1];
	}//withDraw

//예금
public static void deposit(int balance[],
		int deposit[]){
	balance[1]=balance[1]+deposit[1];
	}//deposit






}

